package func.study.concurrency.c16;

/**
 * Created by chenyao on 2017/7/13.
 */
public class MemTest {

    public static int a = 0;
    public static void main(String[] args) throws InterruptedException {
        Thread t = new Thread(() -> {
            a = 1;
        });
        t.start();
        t.join();
        Thread t1 = new Thread(() -> {
            System.out.println(a);
        });
        t1.start();

    }





}
